function imprimir(){
    $('.btn').attr('style','display: none;');
    window.print();
    $('.btn').show(700);
}

$(document).ready(function(){
    $('.btn').each(function(){
        if($(this).attr('url') !== undefined){
            $(this).click(function(){
                window.location = $(this).attr('url');
            })
        }
    });
    
    $('.print').tooltip();
    
    var width = 500;
    var height = 300;
    window.parent.$('#site').dialog( "option", "width", 'auto' );
    window.parent.$('#site').dialog( "option", "height", 'auto');
    window.parent.$('#site').height( height );
    window.parent.$('#site').width( width );
    window.parent.$('#site').dialog( "option", "position", 'center' );
}); 

    
    


